// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import App from './App'

//axios配置
import axios from 'axios'
Vue.config.devtools = true
axios.defaults.timeout = 30000; //请求超时的时间设定
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';  //axios默认的请求方式,可以自己设置
import apiConfig from '../config/api.config'
import Axios from 'axios'
Axios.defaults.baseURL = apiConfig.baseUrl
Vue.prototype.axios = axios;
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>'
})
